﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:uc="clr-namespace:CommunityMegaphone.UserControls" 
    x:Class="CommunityMegaphone.DetailsView"
    d:DataContext="{d:DesignData SampleData/SearchResultsViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696" 
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{Binding Events[0]}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock Style="{StaticResource CmTitleStyle}"/>
            <TextBlock x:Name="ListTitle" Text="{Binding Title}" Margin="0" Style="{StaticResource PhoneTextTitle2Style}"/>
        </StackPanel>

    	<Grid Grid.Row="1">
            <uc:CMLogoFullUC Margin="80,165,80,165" Opacity="0.3" ScaleX="2.0" ScaleY="2.0"/>
            <ScrollViewer x:Name="ContentPanel" Height="580" Width="480" Margin="0,0,0,20">
                <TextBlock x:Name="ContentText" Text="{Binding Description}" TextWrapping="Wrap" Margin="24,10,24,24" Style="{StaticResource PhoneTextTitle3Style}" ManipulationStarted="OnManipulationStarted" ManipulationDelta="OnManipulationDelta" ManipulationCompleted="OnManipulationCompleted"/>
    		</ScrollViewer>
    	</Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="btnMapView" Click="OnViewEventMap" IconUri="/icons/appbar.map.rest.png" Text="map"></shell:ApplicationBarIconButton>
            <shell:ApplicationBarIconButton x:Name="btnEventWebsite" Click="OnNavigateToEventWebsite" IconUri="/icons/appbar.info.rest.png" Text="website"></shell:ApplicationBarIconButton>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
